# $Id: PKGBUILD 87823 2013-04-07 09:29:35Z idevolder $
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>

pkgname=libnfs
pkgver=1.5.0
pkgrel=1
pkgdesc="client library for accessing NFS shares"
arch=('i686' 'x86_64')
url="https://github.com/sahlberg/libnfs"
license=('GPL')
depends=('glibc')
source=("https://github.com/downloads/sahlberg/$pkgname/$pkgname-$pkgver.tar.gz")
#_srcfolder=sahlberg-libnfs-47e5a2c
sha256sums=('5663355dc18e75c893e09b133ca3ef70cf00754acfea863257f509922b5e5faa')
options=(!libtool)

build() {
  #mv "$_srcfolder" "$pkgname-$pkgver"

  cd "$pkgname-$pkgver"

  autoreconf -vif
  ./configure --prefix=/usr
  make
}

package() {
  cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}
